package com.szpx.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "Consumers")
public class Consumer {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String name;
    private String hi;
    private String username;
    private String password;
    private String email;

    private String confirmPassword;

    // 省略构造函数、getter和setter方法


    public Consumer(Integer id, String name, String hi, String username, String password, String email, String confirmPassword) {
        this.id = id;
        this.name = name;
        this.hi = hi;
        this.username = username;
        this.password = password;
        this.email = email;
        this.confirmPassword = confirmPassword;
    }
}
